//
//  PresentLogInVC.m
//  BusinessMarket
//
//  Created by Michael Li on 2019/1/18.
//  Copyright © 2019年 Michael Li. All rights reserved.
//

#import "LogOutAccount.h"

@implementation LogOutAccount
+(void)presentOutAccount
{
    UIViewController* viewController = [UIApplication sharedApplication].keyWindow.rootViewController;
    LogInOrOutVC *logVC = [[LogInOrOutVC alloc]init];
    MainNavC *mianNav = [[MainNavC alloc]initWithRootViewController:logVC];
    [viewController presentViewController:mianNav animated:YES completion:^{
        [UserDefaultsHelper saveUid:@"" value:nil];
        [UserDefaultsHelper saveToken:@"" value:nil];
        if ([UserDefaultsHelper readAutoLogIn].length != 0) {
            [UserDefaultsHelper saveAutoLogIn:@"" value:@"NO"];
        }
    }];
}
@end
